import React, { Component } from 'react'
import Demo from "./components/Demo"
import Cat from './components/Cat'
import Mouse from './components/Mouse'

export default class App extends Component {
  render() {
    return (
      <div>
        <h1>猫抓老鼠</h1>
        {/* <Demo render={(state)=><Cat {...state}></Cat>}></Demo>
        <Demo render={(state)=><Mouse {...state}></Mouse>}></Demo> */}
        <Demo>{(state)=><Cat {...state}></Cat>}</Demo>
        <Demo>{(state)=><Mouse {...state}></Mouse>}</Demo>
      </div>
    )
  }
}
